package com.starlink.model.dtomapper;

import com.starlink.model.domain.OtherOrderDO;
import com.starlink.model.request.OtherOrderRequest;
import com.starlink.model.vo.OtherOrderVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface OtherOrderDtoMapper {

    OtherOrderDtoMapper INSTANCE = Mappers.getMapper(OtherOrderDtoMapper.class);

    /**
    * DO to VO
    * @param otherOrderDO
    * @return
    */
    OtherOrderVO do2VO(OtherOrderDO otherOrderDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    OtherOrderDO request2DO(OtherOrderRequest request);
}
